<?php
declare (strict_types=1);

namespace app\admin\validate;

use think\Validate;

class ArticleCateValidate extends Validate
{
    /**
     * 定义验证规则
     * 格式：'字段名' =>  ['规则1','规则2'...]
     *
     * @var array
     */
    protected $rule = [
        'name|名称'   => 'require|max:100',
        'status|状态' => 'require|in:1,2',
        'sort|排序'   => 'integer|between:0,10000',
    ];

}
